package com.shardingjdbc.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import groovy.transform.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author zhanglei01
 * @date 2020/9/21 17:18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("book")
@ApiModel(value="Book对象", description="")
public class Book {

    @ApiModelProperty(value = "id")
    private int id;
    @ApiModelProperty(value = "书籍名称")
    private String name;
    @ApiModelProperty(value = "数量")
    private int count;

}
